package com.jie.eduservice.mapper;

import com.jie.eduservice.entity.vo.front.CourseWebVO;
import com.jie.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jie.eduservice.entity.vo.CoursePublishVO;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author xzj
 * @since 2020-10-09
 */
@Repository  // 防止idea报错
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 根据课程id查询课程确认发布信息
     * @param courseId  课程id
     * @return          返回课程确认发布信息
     */
    CoursePublishVO getPublishCourseInfo(String courseId);

    /**
     * 根据课程id查询课程详情的方法
     * @param courseId  要查询的课程信息的课程id
     * @return          返回课程信息
     */
    CourseWebVO getBaseCourseInfo(String courseId);

}
